<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>08-浮动布局练习(2)</title>

  <style>
    body {
      background-color: #ccc;
    }

    .box {
      width: 1226px;
      height: 615px;
      background-color: skyblue;
      margin: 0 auto;
    }

    .box div {
      float: left;
    }

    .box .left {
      width: 234px;
      height: 615px;
      background-color: purple;
    }

    .box .right {
      width: 992px;
      height: 615px;
      background-color: pink;
    }

    .box .right>div {
      width: 234px;
      height: 300px;
      background-color: #fff;
      margin-left: 14px;
      margin-bottom: 14px;
    }
  </style>

</head>

<body>

  <div class="box">

    <div class="left">我是左盒子</div>
    <div class="right">

      <div>1</div>
      <div>2</div>
      <div>3</div>
      <div>4</div>
      <div>5</div>
      <div>6</div>
      <div>7</div>
      <div>8</div>

    </div>

  </div>

</body>

</html>